import request from '@/utils/request.js'

// 获取验证码
export function getCaptcha() {
  return request({
    url: '/auth/captcha',
    method: 'get',

  })
}

// 登录
export function login(data) {
  return request({
    url: '/auth/login',
    method: 'post',
    data: data,
  })
}

// 获取用户信息
export function getUserProfile() {
  return request({
    url: '/sys/user/profile',
    method: 'get'
  })
}